home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr48 / vser10a.zip / SN2A.BAT < prev    next >
DOS Batch File  |  1995-01-17  |  1KB  |  34 lines

  1. @echo off
  2. rem This batch file will initialize file sample.exe in drive A: with
  3. rem next serial no...
  4. cls
  5. rem Place createsn.exe and appendsn.exe (and searchsn.exe, if desired) in your
  6. rem path or specify full pathname when they are called, below.
  7. rem The next line increments serialno.dat on source drive by one...
  8. createsn
  9. echo.
  10. rem The following assumes your next disk to be initialized is in drive A:...
  11. echo About to copy serialno.dat to A:...
  12. pause
  13. cls
  14. copy serialno.dat a:\
  15. a:
  16. cd \
  17. rem The executable to be serialized is assumed to already exist in A:\...
  18. appendsn sample.exe
  19. echo.
  20. rem If using Norton's FD.EXE (FileDate) util., unrem/modify the next 2 lines...
  21. rem fd sample.exe /t00:00
  22. rem fd serialno.dat /t00:00
  23. rem You may also simply delete serialno.dat from the diskette, if desired.
  24. rem If you wish to search/verify the .exe for the serialization, unrem the
  25. rem next line:
  26. rem searchsn sample.exe
  27. echo.
  28. echo Returning to C:...
  29. pause 
  30. c:
  31. echo.
  32. echo Done.
  33. echo.
  34.